<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Condition_and_recycle</title>
    <script src="../Vue.js" type="text/javascript"></script>
    <style>
        #panel{
            width: 200px;
            height: 200px;
            background-color: skyblue;
        }
    </style>
</head>
<body>

<div id="app">
    <div v-show="isShow" id="panel">
        Hello,Vue~
    </div>
    <button @click="showPanel">点击切换内容</button>
</div>

<script type="text/javascript">
	let app = new Vue({
		el:"#app",
		data:{
			isShow:true
		},
		methods:{
            showPanel:function () {
            	app.isShow = !app.isShow;
            }
        }
	})
</script>
</body>
</html>